#include"UdpServer.hpp"

int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        std::cout <<"Usage: "<<argv[0]<<" port "<<std::endl;
        Die(USAGE_ERR);
    }

    //std::string ip = argv[1];
    uint16_t port = std::stoi(argv[1]);

    ENABLE_CONSOLE_LOG();

    std::unique_ptr<UdpServer> ser_ptr = std::make_unique<UdpServer>(port);
    ser_ptr->InitServer();
    ser_ptr->Start();

    return 0;
}